package com.hoshiicloud.purchase.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.hoshiicloud.common.aop.Logable;
import com.hoshiicloud.purchase.WorksheetProfile;
import org.springframework.cache.annotation.CacheEvict;

import java.util.List;

/**
 * <p>
 * 系统工单默认配置 服务类
 * </p>
 *
 * @author Mr.wu
 * @since 2019-07-25
 */
public interface WorksheetProfileService extends IService<WorksheetProfile> {

    WorksheetProfile getById(Long id);

    boolean save(WorksheetProfile entity);

    boolean updateById(WorksheetProfile entity);

    IPage<WorksheetProfile> page(IPage<WorksheetProfile> page, Wrapper<WorksheetProfile> queryWrapper);

    boolean deleteById(WorksheetProfile entity);

    List<WorksheetProfile> getByIds(List<Long> ids, String key);

    @CacheEvict(cacheNames = "WorksheetProfile", allEntries = true)
    @Logable(authName = "工单配置-系统工单默认配置管理-初始化系统工单默认配置")
    boolean initProfile(Long companyId, Long platformId, Long storeId);
}
